home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3p / pthread_setschedparam.z / pthread_setschedparam
Encoding:
Text File  |  1998-10-20  |  4.0 KB  |  67 lines

  1.  
  2.  
  3.  
  4. pppptttthhhhrrrreeeeaaaadddd____sssseeeettttsssscccchhhheeeeddddppppaaaarrrraaaammmm((((3333PPPP))))                            pppptttthhhhrrrreeeeaaaadddd____sssseeeettttsssscccchhhheeeeddddppppaaaarrrraaaammmm((((3333PPPP))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      pthread_setschedparam, pthread_getschedparam - change thread scheduling
  10.  
  11. CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<pppptttthhhhrrrreeeeaaaadddd....hhhh>>>>
  13.  
  14.      iiiinnnntttt pppptttthhhhrrrreeeeaaaadddd____sssseeeettttsssscccchhhheeeeddddppppaaaarrrraaaammmm((((pppptttthhhhrrrreeeeaaaadddd____tttt tttthhhhrrrreeeeaaaadddd,,,, iiiinnnntttt ppppoooolllliiiiccccyyyy,,,,
  15.           ccccoooonnnnsssstttt ssssttttrrrruuuucccctttt sssscccchhhheeeedddd____ppppaaaarrrraaaammmm ****ppppaaaarrrraaaammmm))));;;;
  16.  
  17.      iiiinnnntttt pppptttthhhhrrrreeeeaaaadddd____ggggeeeettttsssscccchhhheeeeddddppppaaaarrrraaaammmm((((pppptttthhhhrrrreeeeaaaadddd____tttt tttthhhhrrrreeeeaaaadddd,,,, iiiinnnntttt ****ooooppppoooolllliiiiccccyyyy,,,,
  18.           ssssttttrrrruuuucccctttt sssscccchhhheeeedddd____ppppaaaarrrraaaammmm ****ooooppppaaaarrrraaaammmm))));;;;
  19.  
  20. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  21.      The _p_t_h_r_e_a_d__s_e_t_s_c_h_e_d_p_a_r_a_m() function changes the scheduling policy and
  22.      parameters of the thread identified by _t_h_r_e_a_d to the values specified by
  23.      _p_o_l_i_c_y and _p_a_r_a_m.  Changing the scheduling characteristics of an existing
  24.      thread is similar to creating the thread with those attributes [see
  25.      _p_t_h_r_e_a_d__a_t_t_r__s_e_t_s_c_h_e_d_p_o_l_i_c_y() and _p_t_h_r_e_a_d__a_t_t_r__s_e_t_s_c_h_e_d_p_a_r_a_m()].  Only
  26.      the assigned thread priority is changed - a temporary priority elevation
  27.      obtained by acquiring a mutex is not affected [see
  28.      _p_t_h_r_e_a_d__m_u_t_e_x_a_t_t_r__s_e_t_p_r_o_t_o_c_o_l()].
  29.  
  30.      The _p_t_h_r_e_a_d__g_e_t_s_c_h_e_d_p_a_r_a_m() function returns the scheduling policy and
  31.      parameters of the thread identified by _t_h_r_e_a_d via the _o_p_o_l_i_c_y and _o_p_a_r_a_m
  32.      parameters.  The assigned thread priority is returned in the
  33.      _s_c_h_e_d__p_r_i_o_r_i_t_y field of _s_c_h_e_d__p_a_r_a_m; the actual priority may be
  34.      temporarily higher if the thread is holding a priority elevating mutex.
  35.  
  36. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  37.      On success _p_t_h_r_e_a_d__s_e_t_s_c_h_e_d_p_a_r_a_m() and _p_t_h_r_e_a_d__g_e_t_s_c_h_e_d_p_a_r_a_m() return
  38.      zero; otherwise an error number is returned:
  39.  
  40.      [[[[EEEESSSSRRRRCCCCHHHH]]]]        The _t_h_r_e_a_d parameter does not identify a thread.
  41.  
  42.      [[[[EEEEPPPPEEEERRRRMMMM]]]]        The caller lacks sufficient privilege to change the
  43.                     scheduling attributes of _t_h_r_e_a_d.
  44.  
  45. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  46.      pthread_attr_setschedparam(3P), pthread_attr_setschedpolicy(3P),
  47.      pthread_mutexattr_setprotocol(3P).
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.